﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace WebForm
{
    public class PageBase : Page
    {
        protected string UserName { get; set; }
        protected bool IsLogin { get; set; }
        protected override void OnPreInit(EventArgs e)
        {
            UserName = Session["userName"] as string;
            IsLogin = !string.IsNullOrWhiteSpace(UserName);
        }
    }
}